package cn.neusoft.neusoft_fz.service.impl;

import cn.neusoft.neusoft_fz.entity.DeliveryEntity;
import cn.neusoft.neusoft_fz.mapper.DeliveryMapper;
import cn.neusoft.neusoft_fz.mapper.DeliveryOrderMapper;
import cn.neusoft.neusoft_fz.service.DeliveryOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.example.entity.DeliveryOrder;
import org.example.entity.Task;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class DeliveryOrderServiceImpl extends ServiceImpl<DeliveryOrderMapper, DeliveryOrder> implements DeliveryOrderService {

    @Autowired
    private DeliveryMapper deliveryMapper;


    @Override
    public List<DeliveryEntity> deliveryEntities() {
        return deliveryMapper.selectDeliveryEntities();
    }

    @Override
    public List<DeliveryEntity> deliveryEntitiesBySubid(String id) {
        return deliveryMapper.selectDeliveryEntitiesBySubid(id);
    }

    @Override
    public List<DeliveryEntity> deliveryEntitiesByDpid(String id) {
        return deliveryMapper.selectDeliveryEntitiesByDpid(id);
    }

    @Override
    public List<Task> taskInFz(String subid) {
        return deliveryMapper.selectTaskInFz(subid);
    }
}
